package com.company.gas.mapper;


import com.company.gas.pojo.Facility;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
/**
 * @author: Li Guangdi
 *
 */
//mybatis的mapper类
@Mapper
@Repository
public interface FacilityMapper {

    List<Facility> selectAll();

    Facility queryFacilityById(@Param(value = "facId") String facId);

    int addFacility(@Param(value = "facId") String facId, @Param(value = "facName") String facName,
                    @Param(value = "baseId") String baseId,
                    @Param(value = "status") Integer status, @Param(value = "flag") Integer flag,
                    @Param(value = "createBy") String createBy, @Param(value = "modifyBy") String modifyBy);

    int updateFacility(@Param(value = "facId") String facId,@Param(value = "facName") String facName,
                       @Param(value = "baseId") String baseId,
                       @Param(value = "status") Integer status,@Param(value = "modifyBy") String modifyBy);

    int deleteFacility(@Param("facId") String facId);
}
